﻿ <%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>成本核算单</title>
	<script type="text/javascript">
		$(function(){
			  $('#tt').tabs({   
			  	plain:true
			  })
		});
	</script>
	</head> 
	<body onresize="resizeGrid();">
		<div id='bas_m_maddDiv'>
			 <div id='bas_m_parentPanel'  title="成本核算" style=" ">
			 	 <div class="easyui-layout" style="overflow-y: hidden; height: 1000px;" >
					 <div data-options="region:'north',border:false"  style="width: 800px; height:250px; overflow-y:hidden;" id="testNorth">
						<table cellpadding="0" cellspacing="0" style="width: 100%;padding-left: 10px;padding-top: 10px; ">
							<tr>
							 	<td>
							 		 <!-- 上一条下一条 -->
								     <div id="bas_totalNum" class="shangXia" style=" float: left; display: none;">
										<a style="cursor: pointer;" onclick="upDownPage(this)" sflag="m" pre='bas' dsid='${m.dsId}' flag="upPage">上一条</a>|<a style="cursor: pointer;"  sflag="m" onclick="upDownPage(this)" pre='bas' dsid='${m.dsId}' flag="downPage">下一条</a> <span id="currentPage"></span>/<span id="lastPage"></span>
									 </div>
									 <!-- 用于显示的单据的的状态图片 -->
									 <div style="float: left; display: none;position:relative;z-index: 2;top:20px;" id="${m.prefix}_imageShow" >
										<span>
											<!--用于显示审核的图片显示审核人和审核时间-->
											<img src=""  id="showImg" style="display:block;margin-left:420px;position: absolute;"/>
											<span id="status" style="position:absolute;z-index: 2;left: 400px;top:25px;">
												<input id="verDesMan" readonly="readonly" style="background-color: transparent;border: 0;text-align:center;font-weight: bold;line-height: 10px"  /><br/>
												<input id="verDesDate" readonly="readonly" style="background-color: transparent;border: 0;text-align:center;font-weight: bold;line-height: 10px;" /> 
											</span>
										</span>
									</div>
							 	</td>
								<td align="right">
									<div style="vertical-align: top;margin-right: 15px;" align="right" id="${m.prefix}_M_UBUTN">
									<!-- 生成公用的按钮 -->
									<c:forEach items="${m.butnList}" var="butp">
										<!-- 分组的权限的按钮 -->
										<c:if test="${not empty butp.IS_GROUP && butp.IS_GROUP =='T' && not empty butp.GROUP_ID}">
											<a href="javascript:void(0)" id="mb2"  iconCls="${butp.iconCls}" plain="false"  menu="#${butp.GROUP_ID}" class="easyui-menubutton" >${butp.BUTN_NAME}</a>
												<div id="${butp.GROUP_ID}" style="width: 150px;">
													<c:forEach items="${m.butnList}" var="butnp">
														<c:if test="${butnp.IS_GROUP != 'T' && not empty butnp.GROUP_ID && butnp.GROUP_ID==butp.GROUP_ID}">
															<c:if test="${empty butnp.SCRIPT_FUNC}">
													   			<div code='${m.prefix}_${butnp.BUT_CODE}' iconCls="${butnp.iconCls}"  pre='${m.prefix}' dsid='${m.dsId}' tit='${m.panelTitle}' flag='3'  oflag="1" sflag="m" right='${butnp.BUT_RIGHT}'>${butnp.BUTN_NAME}</div> 
													   		</c:if>
													   		<c:if test="${not empty butnp.SCRIPT_FUNC}">
														   		<div onclick="${butnp.SCRIPT_FUNC}"  iconCls="${butnp.iconCls}" code='${m.prefix}_${butnp.BUT_CODE}'  pre='${m.prefix}' dsid='${m.dsId}' tit='${m.panelTitle}' flag='3'  oflag="1" sflag="m"  right='${butnp.BUT_RIGHT}'>${butnp.BUTN_NAME}</div>  
													   		</c:if>
														</c:if>
													</c:forEach>
												</div>
										</c:if>
										<!-- 非分组公用按钮 -->
										<c:if test="${empty butp.IS_GROUP &&  empty butp.GROUP_ID}">
											<c:if test="${empty butp.SCRIPT_FUNC}">
												<a class='easyui-linkbutton'  id="${m.prefix}_${butp.BUT_CODE}" iconCls="${butp.iconCls}"  code='${m.prefix}_${butp.BUT_CODE}'  pre='${m.prefix}' dsid='${m.dsId}'  sflag="m" flag='3'  right='${butp.BUT_RIGHT}'>${butp.BUTN_NAME}</a>
											</c:if>
											<c:if test="${not empty butp.SCRIPT_FUNC}">
												<a class='easyui-linkbutton' id="${m.prefix}_${butp.BUT_CODE}" iconCls="${butp.iconCls}" onclick="${butp.SCRIPT_FUNC}" code='${m.prefix}_${butp.BUT_CODE}'   pre='${m.prefix}' dsid='${m.dsId}' sflag="m" flag='3'   right='${butp.BUT_RIGHT}'>${butp.BUTN_NAME}</a>
											</c:if>
										</c:if>
									</c:forEach>
									<!-- 生成加载个性按钮 -->
									<c:forEach items="${m.preButnList}" var="but">
										<!-- 分组的个性化的按钮 -->
										<c:if test="${not empty but.IS_GROUP && but.IS_GROUP =='T' && not empty but.GROUP_ID}">
											<a href="javascript:void(0)" id="mb2" plain="false"  iconCls="${but.iconCls}" menu="#${but.GROUP_ID}" class="easyui-menubutton" >${but.BUTN_NAME}</a>
												<div id="${but.GROUP_ID}" style="width: 150px;">
													<c:forEach items="${m.preButnList}" var="butn">
														<c:if test="${butn.IS_GROUP != 'T' && not empty butn.GROUP_ID  && butn.GROUP_ID==but.GROUP_ID}">
															<c:if test="${empty butn.SCRIPT_FUNC}">
													   			<div  code='${m.prefix}_${butn.BUT_CODE}' iconCls="${butn.iconCls}" pre='${m.prefix}' dsid='${m.dsId}' tit='${m.panelTitle}' flag='3'  oflag="1" sflag="m" right='${butn.BUT_RIGHT}'>${butn.BUTN_NAME}</div> 
													   		</c:if>
													   		<c:if test="${not empty butn.SCRIPT_FUNC}">
														   		<div onclick="${butn.SCRIPT_FUNC}" iconCls="${butn.iconCls}" code='${m.prefix}_${butn.BUT_CODE}'  pre='${m.prefix}' dsid='${m.dsId}' tit='${m.panelTitle}' flag='3'  oflag="1" sflag="m"  right='${butn.BUT_RIGHT}'>${butn.BUTN_NAME}</div>  
													   		</c:if>
														</c:if>
													</c:forEach>
												</div>
										</c:if>
										<!-- 非分组的个性化的按钮 -->
										<c:if test="${empty but.IS_GROUP && empty but.GROUP_ID}">
						 					<c:if test="${empty but.SCRIPT_FUNC}">
												<a class='easyui-linkbutton' iconCls="${but.iconCls}"  code='${m.prefix}_${but.BUT_CODE}' id='${m.prefix}_${but.BUT_CODE}'  pre='${m.prefix}' dsid='${m.dsId}' tit='${m.panelTitle}' sflag="m" flag='3' right='${but.BUT_RIGHT}'>${but.BUTN_NAME}</a>
											</c:if>
											<c:if test="${not empty but.SCRIPT_FUNC}">
												<a class='easyui-linkbutton' iconCls="${but.iconCls}" onclick="${but.SCRIPT_FUNC}"  code='${m.prefix}_${but.BUT_CODE}' id='${m.prefix}_${but.BUT_CODE}'  pre='${m.prefix}' dsid='${m.dsId}' tit='${m.panelTitle}' sflag="m" flag='3' right='${but.BUT_RIGHT}'>${but.BUTN_NAME}</a>
											</c:if>
										</c:if>
									</c:forEach>
									<a class='easyui-linkbutton' iconCls="icon-back" id='bas_BACK_BUT' onclick="return cbhsRowBak(this)" sflag="m" code ='rollBack'  pre='${m.prefix}' dsid='${m.dsId}' style="float: right;">返回</a>
								</div> 
							</td>
							</tr>
						</table>
						<div title="预估成本核算" style="">  
				        	<form id='bas_addWinForm' dsid='${m.dsId}'>
					        	<div  class='tableBord' id='bas_addWinTable'  style="padding-left: 10px;">
					        	</div>
				        	</form>
				        </div>  
					</div>
					<div data-options="region:'center'" style="height: 400px; "  id="cbd_everyCb" >  
						<div id="tt" class="easyui-tabs" style="height:400px;"  isMulTabs="true">
						    <div title="材料" style="overflow:auto;">  
					   			<!-- 明细中的按钮 -->
<!--				            	<div id="${m.prefix}_itemButns"  style="float:left;">-->
<!--									<a class='easyui-linkbutton' onclick="javascript:_yzfy_addItem(this,1)" pre='${m.prefix}' id='cbhsItemAdd' code='cbhsItemAdd' dsid='${m.dsId}'>添加明细</a>-->
<!--									<a class='easyui-linkbutton' onclick="javascript:cbhsitemRowDel('oneChengBen')" pre='${m.prefix}' id='cbhsItemAdd' code='cbhsItemAdd' dsid='${m.dsId}'>删除</a>-->
<!--								</div>-->
						   	    <div id="oneChengBen" realdsid="ds_yz_cbhs_item1" dsId="${fn:split(m.dsId,';')[0]};ds_yz_cbhs_item1" prefix="${m.prefix}"> <!-- 放一个DataGrid  --> </div>
						    </div>
							<div title="印刷" style="overflow:auto;">
								<!-- 明细中的按钮 -->
<!--				            	<div id="${m.prefix}_itemButns"  style="float:left;">-->
<!--									<a class='easyui-linkbutton' onclick="javascript:_yzfy_addItem(this,2)" pre='${m.prefix}' id='cbhsItemAdd' code='cbhsItemAdd' dsid='${m.dsId}'>添加明细</a>-->
<!--									<a class='easyui-linkbutton' onclick="javascript:cbhsitemRowDel('twoChengBen')" pre='${m.prefix}' id='cbhsItemAdd' code='cbhsItemAdd' dsid='${m.dsId}'>删除</a>-->
<!--								</div>-->
								<div id="twoChengBen" realdsid="ds_yz_cbhs_item2" dsId="${fn:split(m.dsId,';')[0]};ds_yz_cbhs_item2" prefix="${m.prefix}">  <!-- 放一个DataGrid  --> </div>
							</div>
							<div title="装订" style="overflow:auto;"  >
								<!-- 明细中的按钮 -->
<!--				            	<div id="${m.prefix}_itemButns"  style="float:left;">-->
<!--									<a class='easyui-linkbutton' onclick="javascript:_yzfy_addItem(this,3)" pre='${m.prefix}' id='cbhsItemAdd' code='cbhsItemAdd' dsid='${m.dsId}'>添加明细</a>-->
<!--									<a class='easyui-linkbutton' onclick="javascript:cbhsitemRowDel('threeChengBen')" pre='${m.prefix}' id='cbhsItemAdd' code='cbhsItemAdd' dsid='${m.dsId}'>删除</a>-->
<!--								</div>-->
								<div id="threeChengBen" realdsid="ds_yz_cbhs_item3" dsId="${fn:split(m.dsId,';')[0]};ds_yz_cbhs_item3" prefix="${m.prefix}"> <!-- 放一个DataGrid  --></div>
							</div>
							<div title="工艺" style="overflow:auto;">
								 <!-- 明细中的按钮 -->
<!--				            	 <div id="${m.prefix}_itemButns"  style="float:left;">-->
<!--									<a class='easyui-linkbutton' onclick="javascript:_yzfy_addItem(this,4)" pre='${m.prefix}' id='cbhsItemAdd' code='cbhsItemAdd' dsid='${m.dsId}'>添加明细</a>-->
<!--									<a class='easyui-linkbutton' onclick="javascript:cbhsitemRowDel('fourChengBen')" pre='${m.prefix}' id='cbhsItemAdd' code='cbhsItemAdd' dsid='${m.dsId}'>删除</a>-->
<!--								 </div>-->
								 <div id="fourChengBen" realdsid="ds_yz_cbhs_item4" dsId="${fn:split(m.dsId,';')[0]};ds_yz_cbhs_item4" prefix="${m.prefix}">  <!-- 放一个DataGrid  --> </div>
							</div>
							<div title="其他" style="overflow:auto;">
								 <!-- 明细中的按钮 -->
				            	 <div id="${m.prefix}_itemButns"  style="float:left;">
									<a class='easyui-linkbutton' onclick="javascript:cbhsRowAdd(this,5)" pre='${m.prefix}' id='cbhsItemAdd' code='cbhsItemAdd' dsid='${m.dsId}'>添加明细</a>
									<a class='easyui-linkbutton' onclick="javascript:cbhsitemRowDel('fiveChengBen')" pre='${m.prefix}' id='cbhsItemAdd' code='cbhsItemAdd' dsid='${m.dsId}'>删除</a>
								 </div>
								 <div id="fiveChengBen" realdsid="ds_yz_cbhs_item5" dsId="${fn:split(m.dsId,';')[0]};ds_yz_cbhs_item5" prefix="${m.prefix}">  <!-- 放一个DataGrid  --> </div>
							</div>
							<div title="增加" style="overflow:auto;">
								 <!-- 明细中的按钮 -->
				            	 <div id="${m.prefix}_itemButns"  style="float:left;">
									<a class='easyui-linkbutton' onclick="javascript:cbhsRowAdd(this,6)" pre='${m.prefix}' id='cbhsItemAdd' code='cbhsItemAdd' dsid='${m.dsId}'>添加明细</a>
									<a class='easyui-linkbutton' onclick="javascript:cbhsitemRowDel('sixChengBen')" pre='${m.prefix}' id='cbhsItemAdd' code='cbhsItemAdd' dsid='${m.dsId}'>删除</a>
								 </div>
								 <div id="sixChengBen" realdsid="ds_yz_cbhs_item6" dsId="${fn:split(m.dsId,';')[0]};ds_yz_cbhs_item6" prefix="${m.prefix}">  <!-- 放一个DataGrid  --> </div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</body>
</html>